package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.dto.cent.iotdata.bailian.PedestrianSyncDTO;
import com.xhwl.common.pojo.cent.bi.PedestrianRecordCompanyHour;
import com.xhwl.common.pojo.cent.bi.PedestrianRecordProjectHour;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;

import java.util.List;

/**
 * @Author： lianghz
 * @Description：
 * @Date 2021/09/20/ 15:56
 */
@FeignClient(name = "cent-bi")
public interface IBiPedestrianCentService {

    @RequestLine(value = "POST /pedestrian-service/async-record-projectHour")
    void asyncRecordProjectHour(@Param("pedestrianRecordProjectHourList") List<PedestrianRecordProjectHour> pedestrianRecordProjectHourList);

    @RequestLine(value = "POST /pedestrian-service/async-record-projectHour-wanderTime")
    void asyncRecordProjectHourWander(@Param("pedestrianRecordProjectHour") PedestrianRecordProjectHour pedestrianRecordProjectHour);

    @RequestLine(value = "POST /pedestrian-service/async-record-companyHour")
    void asyncRecordCompanyHour(@Param("pedestrianRecordCompanyHourList") List<PedestrianRecordCompanyHour> pedestrianRecordCompanyHourList);

    @RequestLine(value = "POST /pedestrian-service/async-record-wanderTime")
    void asyncRecordWanderTime(@Param("pedestrianRecordCompanyHourList") List<PedestrianRecordCompanyHour> pedestrianRecordCompanyHourList);

    @RequestLine(value = "POST /pedestrian-service/async-one-day-record")
    boolean asyncOneDayRecord(@Param("pedestrianSyncDTO") PedestrianSyncDTO pedestrianSyncDTO);
}
